﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ValidationFormTask.aspx.cs" Inherits="Validation.sp2010.Layouts.Validation.sp2010.FormTask" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>


<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <style type="text/css">
        .Separator {
            /* [ReplaceColor("Accent 1")] */ background-color:#000;
            width:100%;
            height:1px;
            margin-top:1px;
            margin-bottom:10px;
            margin:auto;
        }
    </style>

</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

    <div style="min-width:600px">


        <p align="left">
            <asp:LinkButton OnClick="LinkButton1_Click" ID="LinkButton" runat="server">
                <span class=" ms-cui-img-32by32 ms-cui-img-cont-float ms-cui-imageDisabled" unselectable="on">
                <img style="left: -96px; top: -128px;" src="/_layouts/1036/images/formatmap32x32.png" />
                    </span><br />
                <asp:Literal ID="Literal7" runat="server" Text="<%$Resources:wss,Edit%>" />

            </asp:LinkButton>
        </p>

    <table width="100%" class="ms-formtable" style="margin-top: 8px;" border="0" cellspacing="0" cellpadding="0">
    <colgroup>
        <col width="30%" />
        <col width="70%" />
    </colgroup>
       <SharePoint:ListFieldIterator  ID="ListFieldIterator" runat="server"
            ControlMode="Display"   />
        <asp:Literal runat="server" ID="Error_Iterator" Text="<%$Resources:vwf,error_no_permission_list%>" Visible="false" />
        </table>
        <div class="Separator" ></div>
    <!-- Update -->
    <table width="100%" class="ms-formtable" style="margin-top: 8px;" border="0" cellspacing="0" cellpadding="0">
    <colgroup>
        <col width="30%" />
        <col width="70%" />
    </colgroup>

        <tbody>
           <!-- task title -->
             <tr runat="server" id="Tr1">
                <td class="ms-formlabel" nowrap="true" valign="top">
                <h3 class="ms-standardheader">
                <asp:Literal ID="Literal3" runat="server" Text="<%$Resources:vwf,label_title_task%>" /> 
                </h3>    
                </td>
                <td class="ms-formbody" valign="top">
                    <asp:Literal runat="server" ID="Literal_TaskTitle" />
                </td>
            </tr>
            <!-- task Description -->
             
             <tr runat="server" id="Tr2">
                <td class="ms-formlabel" nowrap="true" valign="top">
                <h3 class="ms-standardheader">
                <asp:Literal ID="Literal6" runat="server" Text="<%$Resources:vwf,label_desc_task%>" /> 
                </h3>    
                </td>
                <td class="ms-formbody" valign="top">
                    <asp:Literal runat="server" ID="Literal_TaskDesc" />
                </td>
            </tr>
            <!-- Next Validator -->
            <tr runat="server" id="Row_nextValidator">
                <td class="ms-formlabel" nowrap="true" valign="top">
                <h3 class="ms-standardheader">
                <asp:Literal ID="Literal4" runat="server" Text="<%$Resources:vwf,label_next_validator%>" /> 
                </h3>    
                </td>
                <td class="ms-formbody" valign="top">
                   <SharePoint:PeopleEditor ID="ValidatorUser" AllowEmpty="false" MultiSelect="false" SelectionSet="User,SPGroup" runat=server></SharePoint:PeopleEditor><br />
                    <asp:RequiredFieldValidator ControlToValidate="ValidatorUser" ValidationGroup="ValidateWithGroup" ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$Resources:vwf,error_required%>"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <!-- Comment -->
            <tr runat="server" id="Row_Comment">
                <td width="113" class="ms-formlabel" nowrap="true" valign="top">
                <h3 class="ms-standardheader">
                <asp:Literal ID="Literal5" runat="server" Text="<%$Resources:vwf,label_comment%>" /> 
                </h3>    
                </td>
                <td class="ms-formbody" valign="top">
                <SharePoint:InputFormTextBox runat="server" RichText="true" Rows="5" Columns="40" ID="comment_TextBox" TextMode="MultiLine" />
                </td>
            </tr>
        </tbody>    
    </table>
    <!-- Buttons --> 

     
       <wssuc:ButtonSection runat="server" ShowStandardCancelButton="false">
    <template_buttons>
       <asp:PlaceHolder ID="PlaceHolder1" runat="server">    
                      
           <asp:Button  OnClick="Validate_Click" id="validate" UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" 
                       Text="<%$Resources:vwf,btn_validate%>"  />
           <asp:Button  OnClick="Refuse_Click" id="refuse" UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" 
                       Text="<%$Resources:vwf,btn_refuse%>"  />
            <asp:Button  OnClick="ValidateWith_Click" id="validateWith" UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" 
                       Text="<%$Resources:vwf,btn_validate_with%>" ValidationGroup="ValidateWithGroup"  />

       </asp:PlaceHolder>
    </template_buttons>
</wssuc:ButtonSection>

          <wssuc:ButtonSection runat="server" ShowStandardCancelButton="true">
    <template_buttons>
       <asp:PlaceHolder ID="PlaceHolder2" runat="server">    
           <asp:Button id="save" OnClick="Save_Click" UseSubmitBehavior="false"  runat="server" class="ms-ButtonHeightWidth" 
                       Text="<%$Resources:wss,multipages_okbutton_text%>"  />
           
           </asp:PlaceHolder>
        </template_buttons>
           </wssuc:ButtonSection>


        </div>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:vwf,label_validation_Task_title%>" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
<asp:Literal ID="Literal2" runat="server" Text="<%$Resources:vwf,label_validation_Task_title%>" />
</asp:Content>